﻿using System;

public class Student
{
    private string name;
    private int fn;

    public Student(string name, int fn)
    {
        this.Name = name;
        this.Fn = fn;
    }

    public string Name
    {
        get
        {
            return name;
        }
        set
        {
            if (value == null || value == string.Empty||value.Length>50)
            {
                throw new ArgumentException("Name should't be null or empty string or more than 50 symbols");
            }
            name = value;
        }
    }

    public int Fn
    {
        get
        {
            return fn;
        }
        set
        {
            if (value < 10000 || value > 99999)
            {
                throw new ArgumentException("The Facilty Number should be between 10000 and 99999");
            }
            fn = value;
        }
    }
}

